<%--
  Created by IntelliJ IDEA.
  User: cz
  Date: 2021/8/12
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加图书</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="js/jquery-3.6.0.js"></script>
</head>
<body>
<form id="form">
    <div class="form-group">
        <label for="InputText1">名称</label>
        <input type="text" class="form-control" id="InputText1" name="bookname" placeholder="图书名称">
    </div>
    <div class="form-group">
        <label for="InputText2">作者</label>
        <input type="text" class="form-control" id="InputText2" name="author" placeholder="图书作者">
    </div>
    <div class="form-group">
        <label for="InputText3">出版社</label>
        <input type="text" class="form-control" id="InputText3" name="publisher" placeholder="图书出版社">
    </div>
    <div class="form-group">
        <label for="InputText4">出版时间</label>
        <input type="text" class="form-control" id="InputText4" name="pubdate" placeholder="输入如20090406">
    </div>
    <button id="button" type="submit" class="btn btn-default">提交</button>
</form>
</body>
</html>
<script>
    $("#button").click(function () {
        $.ajax({
            url:"/managerSystem.do?flag=addBook",
            type:"POST",
            dataType:"json",
            data:{

            }
        })
    })

</script>
